package com.googlecode.grima.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table(name = "PORTAL_SYSTEM")
public class System extends com.googlecode.grima.base.Entity {


	/**
	 * 
	 */
	private static final long serialVersionUID = -4476936952179599419L;
	
	private String company;
	private byte[] logo;

	public System() {
	}

	public System(String company) {
		this.company = company;
	}

	@Column(name = "COMPANY")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Type(type="org.hibernate.type.PrimitiveByteArrayBlobType") 
	@Column(name = "LOGO")
	public byte[] getLogo() {
		return logo;
	}

	public void setLogo(byte[] logo) {
		this.logo = logo;
	}

}